home *** CD-ROM | disk | FTP | other *** search
/ Chip: 2001 Haziran / CHIP Haziran2001.iso / prog / haziran / 20 / setup.exe / {app} / plugins / XQ Desktop Show Build.xpl < prev    next >
Encoding:
XSetup plugin  |  2001-03-28  |  1.8 KB  |  61 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Desktop\Options"
  5. "NAME"="Window Version on Desktop"
  6. "OSVERSION"="10111"
  7. "VERSION"="1.05"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Show Windows Build/Version on Desktop"
  10. "DESCRIPTION 1"="This options allows you to display the build of Windows that you are using in the lower right-hand corner of your desktop screen above the taskbar tray area. "
  11. "DESCRIPTION 2"="NOTE: This works on Windows 95,98,ME and 2000. 
  12. "DESCRIPTION 3"="*IMPORTANT* Will not work if ActiveDesktop is enabled!!"
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17. "COMMENT 2"="Thanks to Maxwell <maxwello@hotpop.com> for this setting."
  18. "COMMENT 3"="Thanks to Pierre Szwarc <http://perso.cybercable.fr/szwarc/> for the Windows 2000 part."
  19.  
  20.  
  21.  
  22. sV1="HKCU\Control Panel\Desktop\PaintDesktopVersion"
  23. sP2="HKCR\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\@"
  24. sV2="%USERNAME% on %COMPUTERNAME%"
  25. sV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowInfoTip" 'DW
  26. sV4="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoSaveSettings" 'BINARY!
  27. sV5="HKCU\Control Panel\Desktop\WindowMetrics\Shell Icon BPP" 'STRING 
  28.  
  29.  
  30. Sub Plugin_Initialize 
  31.  i=RegReadValue(sV1)
  32.  if i=1 then SetUIElement 1,true
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  valToSet=0
  40.  
  41.  b=GetUIElement(1)
  42.  if b=true then
  43.     valToSet=1
  44.  else
  45.     valToSet=0
  46.  end if
  47.  
  48.  'Windows 95/98/ME = STRING;  Windows 2000 = DWORD
  49.  if GetWinVer=1 or GetWinVer=3 or GetWinVer=5 then
  50.     Call RegWriteValue(sv1,valToSet,1)
  51.  else
  52.     Call RegWriteValue(sv1,valToSet,2)
  53.  end if
  54.  
  55.  
  56.  Call Logoff()
  57. End Sub
  58.  
  59. Sub Plugin_Terminate 
  60. End Sub
  61.